home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / postquel / destroy < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  61 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/destroy,v 1.5 1992/07/14 05:54:17 ptong Exp $
  3. .SP DESTROY COMMANDS 6/14/90
  4. .XA 2 Destroy
  5. .uh NAME
  6. .lp
  7. destroy \*- destroy existing classes
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBdestroy\fR classname-1 { \fB,\fR classname-i }
  12. .)l
  13. .uh DESCRIPTION
  14. .lp
  15. .b Destroy
  16. removes classes from the data base.
  17. Only its owner may destroy a class.
  18. A class may be emptied of instances,
  19. but not destroyed,
  20. by using the
  21. .b delete
  22. statement.
  23. .lp
  24. If a class being destroyed has secondary indices on it,
  25. then they will be removed first.
  26. The removal of just a secondary index will not affect
  27. the indexed class.
  28. .lp
  29. This command may be used to destroy a version class
  30. which is not a parent of some other version.
  31. Destroying a class which is a parent of a
  32. version class is disallowed.
  33. Instead, the
  34. .b merge
  35. command should be used.
  36. Moreover, destroying a qclass whose fields are inherited by other classes
  37. is similarly disallowed.  An inheritance hierarchy must be destroyed from 
  38. leaf level to root level.
  39. .lp
  40. The destruction of classes is not reversable.
  41. Thus, a destroyed class will not be recovered
  42. if a transaction which destroys this class fails to commit.
  43. In addition,
  44. historical access to instances in a destroyed class is not possible.
  45. .uh EXAMPLE
  46. .lp
  47. .ft C
  48. /* Destroy the emp class */
  49.  
  50. destroy emp
  51.  
  52. /* Destroy the emp and parts classes */
  53.  
  54. destroy emp, parts
  55. .ft
  56. .uh "SEE ALSO"
  57. .lp
  58. delete(commands),
  59. remove index(commands),
  60. merge(commands).
  61.